package app.beit.finportal.controller.backdoor;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import app.beit.finportal.controller.BaseController;

@Controller
@RequestMapping("/backend/logout")
public class LogoutController extends BaseController {

	@RequestMapping
	public String logout(final HttpServletRequest request){
		request.getSession().removeAttribute("USER");
		return "redirect:/backend";
	}
	
}
